<%@include file="/WEB-INF/common/taglibs.jsp" %>
<div class="row-fluid">
   <div class="span4">
    <form:form method="post" modelAttribute="template">
  		<input type="hidden" name="_method" value="${_method }" />
         <div class="title">
            <h4 class="clearfix">
               <span class="left">
							New / Edit Channel
               </span>
               <span class="box-form right">
               		<button class="btn btn-success btn-mini" type="submit">Submit</button>
               </span>
            </h4>
         </div>
         <div class="form-horizontal clearfix">
		   <div class="form-row">
               <label class="form-label span4">Name </label>
               <input class="span8" name="name" type="text" value="${channel.name}" />
            </div>
          <div class="form-row">
               <label class="form-label span4">Path </label>
               <input class="span8" name="path" type="text" value="${channel.path}" />
            </div>
            
            <div class="form-row">
               <label class="form-label span4">Title </label>
               <input class="span8" name="title" type="text" value="${channel.title}" />
            </div>
            
            <div class="form-row">
               <label class="form-label span4">            Meta Title </label>
               <input class="span8" name="metaTitle" type="text" value="${channel.metaTitle}" />
            </div>
			<div class="form-row">
               <label class="form-label span4">            Meta   Descr </label>
               <input class="span8" name="metaDescription" type="text" value="${channel.metaDescription}" />
            </div>
               <div class="form-row">
              <label class="form-label span4"> Keyword </label>
               <input class="span8" name="metaKeywords" type="text" value="${channel.metaKeywords}" />
            </div>
            </div>
            <div class="form-row row-fluid">
            	<div class="span12">
            		<div class="row-fluid">
	            	<label class="form-label span4">Template </label>
	            	<div class="span8 controls" id="currencyPair">   
	            	
	                	<select name="selfTemplateId">
	                	 	<option value=""> ============</option>
	                        <c:if test="${not empty templates}">
	                      	<c:forEach var="template" items="${templates}">
	                      		<option value="${template.id}" ${(template.id == channel.selfTemplate.id)?'selected':''}>${template.name}</option>
	                      	</c:forEach>
	                    </c:if>
	               
	                </select>
				</div>
			</div>
			</div>
 
         </div>
     </div>
   </div>
    </form:form>
</div>
</div>